__author__ = 'hsd'

from sklearn import linear_model

clf = linear_model.LinearRegression()
clf.fit([[0,0],[1,1],[2,2]],[0,1,2])
print(clf.coef_)